//#define SCRUTINIZE
#define MUTE


#ifndef TRIANGULATION_H
#define TRIANGULATION_H

#include <string>
#ifdef _WIN32
#include <direct.h>
#define MULTI_THREAD
#include <process.h>
#include <windows.h>
#else
#include <unistd.h>
#endif

#include "vtkPolyData.h"
#include "vtkDataSetMapper.h"
#include "vtkCellArray.h"
#include "vtkActor.h"
#include "vtkProperty.h"
#include "vtkRenderWindow.h"
#include "vtkRenderer.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkVRMLExporter.h"
#include "vtkPoints.h"
#include "vtkDelaunay2D.h"

#include "dsc3d.h"
#include "dir.h"

using std::string;

int convert_dir(char* dir);
int convert(char* filename);
int init_delaunay2D(DSC3D* dsc1, vtkDelaunay2D* del_out);
int test_delaunay2D(vtkPoints* in_pts, vtkDelaunay2D* del_out);
int export_delaunay2D(vtkDelaunay2D* del_out, char* filename);
int create_wrl_dir();

#ifdef MULTI_THREAD
void threadConvert(PVOID param);
#endif

#endif